﻿
function pageLoad() {
    ScottCateAjax2008.Services.NorthwindService.GetProducts(goGetProducts_Callback, errorCallback);
}

function goGetProducts_Callback(results) {
    var products = $create(Sys.UI.DataView, {}, {}, {}, $get("products"));
    products.set_data(results);
}
    
function errorCallback(error) {
    alert(error);
}